package com.yilong.springcloudalibabanacos.sys.enums;

public enum ResponseEnum {

    /**
     * 请求成功
     */
    SUCCESS(200,"请求成功"),
    /**
     * 请求失败，内部错误
     */
    ERROR(500,"请求失败,内部错误!"),

    /**
     * 请求失败，内部错误
     */
    MYBATIS_PLUS_EXCEPTION(500,""),

    /**
     * 请求失败，请求参数错误
     */
    PARAM_ERROR(9001,"请求参数错误!");

    /**
     * 请求码
     */
    private Integer code;

    /**
     * 返回消息
     */
    private String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
